package com.ckv.qcm.controller;

import com.ckv.qcm.model.Trainer;

public class UserController {

	public Trainer oTrainer;

	public boolean auth(String login, String password) throws Exception {
		oTrainer = new Trainer(0, "", "", login, password);
		oTrainer = oTrainer.authentify();
		if (oTrainer != null) {
			GeneralController.getInstance().isConnected=true;
			return true;
			
		} else {
			return false;
		}
	}
}
